package com.xd.core.company.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.xd.core.company.entity.ElectronicTransferInfo;
import com.xd.core.debt.vo.PreDepositPaymentOrderVo;
import com.xd.core.finance.dto.PaymentRecordQueryDto;
import com.xd.core.finance.dto.RechargeAndRefundQueryDto;
import com.xd.core.finance.vo.PaymentRecordQueryVo;
import com.xd.core.finance.vo.RechargeAndRefundQueryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 电子转账记录 Mapper 接口
 * </p>
 *
 * @author ZX
 * @since 2025-03-03
 */
public interface ElectronicTransferInfoMapper extends BaseMapper<ElectronicTransferInfo> {

    void update(String status, String tradeNo);

    List<PreDepositPaymentOrderVo> getPreDepositPaymentOrderList(Integer companyId);

    Page<PaymentRecordQueryVo> getPaymentRecords(@Param("pay") PaymentRecordQueryDto paymentRecordQueryDto, @Param("companyId") Integer companyId, @Param("userIds") List<Integer> userIds);

    Page<RechargeAndRefundQueryVo> getRechargeAndRefundRecords(@Param("dto") RechargeAndRefundQueryDto dto, @Param("companyId") Integer companyId, @Param("userIds") List<Integer> userIds);
}
